<%@page import="com.ddd.context.Parameters"%>
<%@page import="com.ddd.util.Util"%>
<%@page import="com.ddd.context.Context"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<%
    String message = request.getParameter("message");
    
    // init system
    Parameters.doSystemInit();
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title><%=Context.SITE_NAME%></title>
        <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
        <link type="text/css" href="css/style.css" rel="stylesheet" />
        <script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
        <script type="text/javascript" src="js/jquery-ui-1.8.16.custom.min.js"></script>
        <script type="text/javascript">
            $(function() {
             
            });
            
            function showMessage(){
            <%if (Util.isNotBlank(message)) {%>
                    $( "#dialog_message" ).dialog({
                        modal: true,
                        title:"訊息",
                        buttons: {
                            Ok: function() {
                                $( this ).dialog( "close" );
                            }
                        }
                    });
            <%}%>
                }
        </script>
    </head>
    <body onload="showMessage();">
        <div id="wrapper">
            <div id="header">
                <div id="logo">
                    <h1><a href="#"><%=Context.SITE_NAME%></a></h1>
                </div>
            </div>
            <!-- end #header -->
            <div id="menu">

            </div>
            <!-- end #menu -->
            <div id="page">
                <div id="page-bgtop">
                    <div id="page-bgbtm">
                        <form id="form1" name="form1" action="../doAuthorize?mode=be" method="post">
                            <p>&nbsp;</p>
                            <p align="center">
                                <label forname="username">用&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;戶：</label>
                                <input type="text" name="username"/>
                                <br /> 
                                <br />
                                <label forname="password">用戶密碼：</label>
                                <input type="password" name="password"/>
                                <br /> 
                                <br />
                                <input type="submit" value="登入"/>
                            </p>
                    </div>
                </div>
                </td>
                </tr>
                </table>
                </form>
                <p>&nbsp;</p>
                <p>&nbsp;</p>
                <p>&nbsp;</p>
                <p>&nbsp;</p>
            </div>
        </div>
    </div>
    <!-- end #page -->
</div>
<div id="footer">
    <p><%=Context.FOOTER%></p>
</div>
<!-- end #footer -->

<div id="dialog_message" style="display: none;">
    <p><%=message%></p>
</div>

</body>
</html>
